package com.learn.sb.springbootmybatis.pojo;


import lombok.Data;
import org.apache.ibatis.type.Alias;

@Data
@Alias(value = "user")
public class User {
	private Integer id;
	private Integer userId;
	private String name;
	private Integer age;
}

/**
 CREATE TABLE `t_user` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `user_id` int(11) NOT NULL,
 `name` varchar(255) NOT NULL,
 `age` int(11) NOT NULL,
 PRIMARY KEY (`id`)
 );
 */
